adding additional checks for correct side conditions on next metadata in record