return type of algorithm