changed init function to be more realistic