got it working!! also added in duplicate functionality