added pass functionality