things to consider before buying a flat