new algorithm for marker size