use type bool instead of dynamic