removed unneeded functions.