added production logic