another attempt at fixing the problem when two people submit at the same time