after priority function