added ram fix