feature spacing fucntion