fix long function call