made small changes to make get request work.