very slow and bad program