passing objects as arguements