updated code to new unity beta