updated RAM8 to remove extra unused variable