added getter methods and some return structure