small change to the quotes logic