check if decorator is correct