added working hook