pen function

Internal Function