fixed errors
helper removed error function