fixed leftover function inputs