formats and removing debugs