removed unnecessary parameters from check-function