hidden dir function complete