checking at function call that all mandatory arguments are provided