fixing code smell done by Pilo