got the code working again