implemented new assing method