works as intended now