added response casting