added new file for general functions