imporved datastructures. now datastructures needed to be castest to thier special type in specific view