clean up of trial and error