changes made along writing tests