makefile and scaling updated