preventing double entries