add log statement for mode