changed the structure controllers