added comparison to supply