sorting things out
after ui debugging