added some component funktions + sort