fixed indentation and renamed method