postride algorithm added