updated main and report