refactor to use define method and a better prefix