get rid of masked function
remove functions only used in other file
remove save function
remove unused line