small fixes

poem helper function