re-inserted the use of constructor on views and hashes