adding debug for memory...