changed check for arg length of 2