added checking