got rid of slice function, using 8bit memory access now