added waste code