cleaning up of type specs