added pass function