removed unused internal functions.