added controller and calculating MBR