needs fix so sarray prtins properly