desproty code improved