modify api according to reviews and add also getter