sorting out unused functions