refactoring code
created cube view