deletet -1 in a few lines