fixes some stuff