removed unnecessary functions.