made modifications to PS1