Modified updated method

passing wrong arguments