refactored bundle to JSONOject