set up for learing and testing