still trying to fix nested fn calls
nested function calls are complete
bug fix for fns