get rid of warnings, add type specs