different function different directory