fr estimation code added