fixing theo bug