fixing divider caluclations