update for Makefile and cast function