added func check_slashes_a