create create_conditions method && apply other method