assinging object to shared value