removed extra mem ref