rm advance logic