forward backward multi-phase line drawing sort of working