[task] added check for type