reordered functions - added comments