remove unused code and modify zoom limit