added checking on empty argument