hopefully restored gcc4.6 compatibility