fixed a silly mistake where k.pen wasn't being properly passed through the S3 helper functions.