importas and simplify condictions