added build method