refactored the transfer functions
transfer fucntion work