imrove code for warning
remove proj.m