adding some PS1 code