remove 1 from the end of a function name