allocate and setup PCB functions added