updated for unity 4.3