added adjusting brightness func