fixed coping inputes function