removed pass function