Buildin outline querying done
Fix of constrains