added parameter to method view