Removed redundant code from assign()