getData debugged, works perfectly