added the build method