Made declip function