add checks in documentation