add accessor passing functionality