added code for new add3 method