add RME to functions