delete unused part of the code