added util code