codes that works half way