added DEBUG MODE