fixing bottom and right side
James's test for the left side was wrong