commented clock. changed main funcion