working prioritised scheduling