change copy and added flowtype