code correction, tested in domus