building json activity
cleaning up code