identify next version correctly