removes trailing z