made consulter function passing