fixed declaration of method getAllData as it was static