map working properly