remove useless variable declarations, override proto
don var functions