DEBUG: for uniform mode of position. WARNING: this is very preliminary, please avoid using it