different solutin compiles and also fixes issue

removed old solution