adding some functions and local file