converted tabs to spaces on index, fixed indentation