get code working