removed reimport of module time
got rid of unused variables and imports of unused modules