fixed bug in  and added p392