finding length now
everything fixed
prettifying