remove old unnecessary feature function code