cleaned up compilation issues but still wont run