added logs for checking if collapse is working