added check_architecture method