fixed spec. Fixed implementation as well.