create computation table, create view, remove unneeded code