format input properly