simple priority implemented