handle case where there are multiple previous underscores