adjusted data layer to return proper json