change files to function
use chalk for colors
change this usage to self