debug version finished