fixed indentation of function