modifed to timing gen relative position