changed Script object to public