try to check by written type