everything looks good, except for PSLOC calculation