revising sarray for further use