added printf lines to ensure its being used