returns data but not rendering correctly