clen up unused functions