almost finished & solved syntax bugs