removing unnecessary functions.