changed the build method to be static