use seq for posix