fixed unix format and cyclic  search