updated code style to be more idiomatic
added note of caution