changed type specs as requested