fixed issue 7 and pitch not null assert checkrep