using map for evaluating pan