methods edited with using json