duplicated code: removed