latest recognition code as of 3/27/2014