simplified logic
make file
defines into make file