added parameter to method gven