updated and fixed spec