replaced LOW and HIGH with PUBLIC and SECRET