cut off unused functions