extract arrays to contants in Mapper;

1. Extract arrays to contants in Mapper
2. Remove redundant variable