adapt to phone for code block