generating psa file output