remove trailing space
correct function call