added some math