changes on psl.c