use DIR once :)