adding return types
keyboard works, more warning fixes