works for small input
blah