process PLAIN method