replace 1/0 returns with FAILURE/SUCCESS