change assertion to chaining assertion