rewrite for actors object to be correct funtional programming