Changes return value of id to instancetype