more effecient code for SS moving lines