change function keys for spec