modified just for debugging