now supports partially applied functions, also arithmetic functions now works correctly