fixing side lengths