deleted two functions which are no longer needed.