check for roots works