changed a small calculation error