if conditions sorted, changed to false for no entries made