scene and elemet and corect reorganisation of the code