initial version comparison logic