add input learning
add nag learning