control script for band structure