update if makefile and add of short function