changes to rails piece structure