fixing ratit functionality