added backward inference stepping