remove unused code
remove unused code and typehint jsonStep object