removed debugger in spec and useless lines