no need to repeat the type of `data` since it's specified above