added method for building response header