trying to figure out the problem