changed layouting to be able to analyze several constrains