having trouble with map