updated inputs with required function