remove schema from function