replaced def with actual return types