remove map script to helper methods