assert method