modified model method and added callback for response