handling duplicate creation