remove dicarded function