beggining of line checks
fixing tests