resolved issue with upsert
Updated version