supplies function added