fix single line function