fixes problems