a simplier version of the programm