Trying to figure out why it is acting funny