compile visit strategy but still  in error