tried line-hugging code, doesn't work yet