for arrays pass title as a param