remove two unused functions