improve performance, avoid division