fix luke's broken code