input validation
check if band names may be empty
fix out of bounds error