updated code example to make it more explicit