check type for actions after, before