trying to figure out problem