prepared for the use of patrik psp code