finished adding new builtin function
fixing bugs