removed duplicate getData method