resolved minor code smell