add types for common thing
fix hlint error