updated sln
implementing circular buffer arithmetic