updated for creating bins for large regions