refactored and added multiple bands