implemented seq= function