extract function to own file
makefile alignment