moved initialize and brightness functions and some prompt functions