added check to see if entry already exists