drawing works, but spaghetti code still