make second y enforcement be part of the functions application