removed .clear() functions since they're not needed, added comments as well