increasing some performances ordering the process
refactor lights building