added bool return value