adds some local variables