working on ANSI control