fix method that was only using red component