added new PTB function