working on paramettric method