crazy 2013 total function added