working as modular functions
slight tweak
move files into sub directory