if last parameter is hash, then `{}` is not needed