fixed indentation
added tests
switched version