added freem_ram