fixed usage of static_assert