adapted aim dependency