corrections on spreading and create init function for fetching