fixed structure so main runs