works consistently now