partial implementation of a new pass