added explicit return type to function