change return type to id