remove ')' from function complete