change pass function