revise assert method