fixed kick-function