take away const on some doubles