remove function complete