fixes function calls