fix bugs,and specs