removed some trial and error code