add psd helper functions