minor modification for var