add fn validation