avoid dynamic_cast. static is enough