normal tools code