little fix
duplicated code removed
fix