put some local variables in prototype