rewriting compare ava with overlay rwm