fixed code so that planes will appear on both sides