Updated -almost able to invoke end points