haiku logic now working