need to make line constraints better