puting stuff in fucntions - not done yet