added total to resource collection
added comments