adjusted micdoodle8 's changes for tanks