added functions to encapsulate the brightness levels