quick fixes for the two reoccurring errors