global variables vs static
static storage class modifier allows it to preserve it's old values between calls