to prevent double entries