fixed functions and syntax, gonna fix variables next.