trying to get code working