for some reason compile flag doesn't work