sometimes concatenation doesn't work as expected, need explicit CAST