added some brackets to fix warning