added openChest func