added JSON.stringify to print objects to console